using System;
using System.Collections;
using System.Collections.Specialized;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;
using System.Text;
using ECommerce.DAL;


namespace Entity
{
	/// <summary>
	/// This object represents the Private Fields of TblProductPurchaseOrder_MultipleShippingInfo.
	/// </summary>
	
	[System.ComponentModel.DataObject]
    public class TblProductPurchaseOrder_MultipleShippingInfo : DatabaseUtility
    {
		#region TblProductPurchaseOrder_MultipleShippingInfo Private Fields


		Int32 _productPurchaseOrder_MultipleShippingInfoId;
		Int32 _orderId;
		String _shippingFirstName = String.Empty;
		String _shippingLastName = String.Empty;
		String _shippingAddressLine1 = String.Empty;
		String _shippingAddressLine2 = String.Empty;
		String _shippingCity = String.Empty;
		String _shippingAddressState = String.Empty;
		String _shippingAddressCountry = String.Empty;
		String _shippingZipCode = String.Empty;
		String _shippingTelephoneNumber = String.Empty;
		String _shippingTelephoneNumber2 = String.Empty;
		String _shippingEmailAddress = String.Empty;
		String _shippingMethod = String.Empty;
		Decimal _shippingCost;
		String _shippingStatus = String.Empty;
		String _orderTrackNumber = String.Empty;
		Boolean _isResidential;
		String _gIftCardMessage = String.Empty;
		DateTime _requestDate;
		Int32 _addressBookId;
		
		#endregion
		#region TblProductPurchaseOrder_MultipleShippingInfo Constractor
		/// <summary>
        /// Creates an empty object of TblProductPurchaseOrder_MultipleShippingInfo. 
        /// This is mainly used to create a new instance of TblProductPurchaseOrder_MultipleShippingInfo to add a new TblProductPurchaseOrder_MultipleShippingInfo.
        /// </summary>
		public TblProductPurchaseOrder_MultipleShippingInfo(){}
		
				
		/// <summary>
        /// Used to retrieve employee information from database, 
        /// which is also used by Update method to save information of an existing TblProductPurchaseOrder_MultipleShippingInfo.
        /// </summary>
		public TblProductPurchaseOrder_MultipleShippingInfo
		(
			Int32 productPurchaseOrder_MultipleShippingInfoId,
			Int32 orderId,
			String shippingFirstName,
			String shippingLastName,
			String shippingAddressLine1,
			String shippingAddressLine2,
			String shippingCity,
			String shippingAddressState,
			String shippingAddressCountry,
			String shippingZipCode,
			String shippingTelephoneNumber,
			String shippingTelephoneNumber2,
			String shippingEmailAddress,
			String shippingMethod,
			Decimal shippingCost,
			String shippingStatus,
			String orderTrackNumber,
			Boolean isResidential,
			String gIftCardMessage,
			DateTime requestDate,
			Int32 addressBookId
		)
		{
			_productPurchaseOrder_MultipleShippingInfoId = productPurchaseOrder_MultipleShippingInfoId;	
			_orderId = orderId;	
			_shippingFirstName = shippingFirstName;	
			_shippingLastName = shippingLastName;	
			_shippingAddressLine1 = shippingAddressLine1;	
			_shippingAddressLine2 = shippingAddressLine2;	
			_shippingCity = shippingCity;	
			_shippingAddressState = shippingAddressState;	
			_shippingAddressCountry = shippingAddressCountry;	
			_shippingZipCode = shippingZipCode;	
			_shippingTelephoneNumber = shippingTelephoneNumber;	
			_shippingTelephoneNumber2 = shippingTelephoneNumber2;	
			_shippingEmailAddress = shippingEmailAddress;	
			_shippingMethod = shippingMethod;	
			_shippingCost = shippingCost;	
			_shippingStatus = shippingStatus;	
			_orderTrackNumber = orderTrackNumber;	
			_isResidential = isResidential;	
			_gIftCardMessage = gIftCardMessage;	
			_requestDate = requestDate;	
			_addressBookId = addressBookId;	
		}
		
		#endregion
		#region TblProductPurchaseOrder_MultipleShippingInfo Properties
		
		 /***********************************************************************************************
                                    -- PROPERTIES --        
         Contains all the properties representing the data fields of the current entity.
         ***********************************************************************************************/

        /// <summary>
        /// This is the Primary key value of the ProductPurchaseOrder_MultipleShippingInfoId, which can't be assigned from the application,
        /// to ensure the data consistancy, by not letting the user to change the PK_TblProductPurchaseOrderMultiple to update the data of an another TblProductPurchaseOrder_MultipleShippingInfo instance.
        /// For view or updation purpose, every TblProductPurchaseOrder_MultipleShippingInfo will be retrieved thru the proper 'Get' method.
        /// </summary>
		
		public Int32 ProductPurchaseOrder_MultipleShippingInfoId
		{
			get {return _productPurchaseOrder_MultipleShippingInfoId;}	
		}
		
				
		public Int32 OrderId
		{
			get {return _orderId;}
			set {_orderId = value;}
		}

		public String ShippingFirstName
		{
			get {return _shippingFirstName;}
			set {_shippingFirstName = value;}
		}

		public String ShippingLastName
		{
			get {return _shippingLastName;}
			set {_shippingLastName = value;}
		}

		public String ShippingAddressLine1
		{
			get {return _shippingAddressLine1;}
			set {_shippingAddressLine1 = value;}
		}

		public String ShippingAddressLine2
		{
			get {return _shippingAddressLine2;}
			set {_shippingAddressLine2 = value;}
		}

		public String ShippingCity
		{
			get {return _shippingCity;}
			set {_shippingCity = value;}
		}

		public String ShippingAddressState
		{
			get {return _shippingAddressState;}
			set {_shippingAddressState = value;}
		}

		public String ShippingAddressCountry
		{
			get {return _shippingAddressCountry;}
			set {_shippingAddressCountry = value;}
		}

		public String ShippingZipCode
		{
			get {return _shippingZipCode;}
			set {_shippingZipCode = value;}
		}

		public String ShippingTelephoneNumber
		{
			get {return _shippingTelephoneNumber;}
			set {_shippingTelephoneNumber = value;}
		}

		public String ShippingTelephoneNumber2
		{
			get {return _shippingTelephoneNumber2;}
			set {_shippingTelephoneNumber2 = value;}
		}

		public String ShippingEmailAddress
		{
			get {return _shippingEmailAddress;}
			set {_shippingEmailAddress = value;}
		}

		public String ShippingMethod
		{
			get {return _shippingMethod;}
			set {_shippingMethod = value;}
		}

		public Decimal ShippingCost
		{
			get {return _shippingCost;}
			set {_shippingCost = value;}
		}

		public String ShippingStatus
		{
			get {return _shippingStatus;}
			set {_shippingStatus = value;}
		}

		public String OrderTrackNumber
		{
			get {return _orderTrackNumber;}
			set {_orderTrackNumber = value;}
		}

		public Boolean IsResidential
		{
			get {return _isResidential;}
			set {_isResidential = value;}
		}

		public String GIftCardMessage
		{
			get {return _gIftCardMessage;}
			set {_gIftCardMessage = value;}
		}

		public DateTime RequestDate
		{
			get {return _requestDate;}
			set {_requestDate = value;}
		}

		public Int32 AddressBookId
		{
			get {return _addressBookId;}
			set {_addressBookId = value;}
		}
		

		#endregion
		#region TblProductPurchaseOrder_MultipleShippingInfo Static Methods
		/************************************************************************************
                                    -- CREATE METHOD (STATIC) --
        *************************************************************************************/
		/************************* Architecure note:**********************************
        Note 1:
        This method is specially useful for the case, where we need to use Object Data Source controls.
        For ObjectDataSource/SqlDataSource controls, the insert/update metnod requires paramters methods, rather property based methods.
        However, there is still a way to pass property based objects as method parameter for data source controls, 
        but in that case we could not use Sql type, as view controls or asp parameter control can only contain few of primitive type.
        The main reason to remain the Sql Type in our object architecture is it is faster and contains better way for null value support.
        
        Note 2: 
        Non-primary key: it should be primitive type, as the asp paramter control (included in data source control) supports only primitive types.
        /*****************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]
        public static  Int32 CreateNewTblProductPurchaseOrder_MultipleShippingInfo
		(
			Int32 orderId,
			String shippingFirstName,
			String shippingLastName,
			String shippingAddressLine1,
			String shippingAddressLine2,
			String shippingCity,
			String shippingAddressState,
			String shippingAddressCountry,
			String shippingZipCode,
			String shippingTelephoneNumber,
			String shippingTelephoneNumber2,
			String shippingEmailAddress,
			String shippingMethod,
			Decimal shippingCost,
			String shippingStatus,
			String orderTrackNumber,
			Boolean isResidential,
			String gIftCardMessage,
			DateTime requestDate,
			Int32 addressBookId
		)
		{
			//creating an empty TblProductPurchaseOrder_MultipleShippingInfo object
            TblProductPurchaseOrder_MultipleShippingInfo tblProductPurchaseOrder_MultipleShippingInfo = new TblProductPurchaseOrder_MultipleShippingInfo();
				tblProductPurchaseOrder_MultipleShippingInfo.OrderId = orderId;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingFirstName = shippingFirstName;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingLastName = shippingLastName;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine1 = shippingAddressLine1;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine2 = shippingAddressLine2;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingCity = shippingCity;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressState = shippingAddressState;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressCountry = shippingAddressCountry;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingZipCode = shippingZipCode;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber = shippingTelephoneNumber;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber2 = shippingTelephoneNumber2;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingEmailAddress = shippingEmailAddress;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingMethod = shippingMethod;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingCost = shippingCost;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingStatus = shippingStatus;
				tblProductPurchaseOrder_MultipleShippingInfo.OrderTrackNumber = orderTrackNumber;
				tblProductPurchaseOrder_MultipleShippingInfo.IsResidential = isResidential;
				tblProductPurchaseOrder_MultipleShippingInfo.GIftCardMessage = gIftCardMessage;
				tblProductPurchaseOrder_MultipleShippingInfo.RequestDate = requestDate;
				tblProductPurchaseOrder_MultipleShippingInfo.AddressBookId = addressBookId;
			
			return TblProductPurchaseOrder_MultipleShippingInfo.CreateNewTblProductPurchaseOrder_MultipleShippingInfo(tblProductPurchaseOrder_MultipleShippingInfo);
		}
	
		/************************************************************************************
                 -- UPDATE METHODS (STATIC) --
        *************************************************************************************/

        /************************* Architecure note:**********************************
        Note 1:
        This method is specially useful for the case, where we need to use Object Data Source controls.
        For ObjectDataSource/SqlDataSource controls, the insert/update metnod requires paramters methods, rather property based methods.
        However, there is still a way to pass property based objects as method parameter for data source controls, 
        but in that case we could not use Sql type, as view controls or asp parameter control can only contain few of primitive type.
        The main reason to remain the Sql Type in our object architecture is it is faster and contains better way for null value support.
        
        Note 2: 
        There the two types of paramaters will be passed here.
         * a. Primary key paramater: it should be Sql type, as we will bind the primary key property for the view controls (form view, details view etc) as datakey.
         * b. Non-primary key: it should be primitive type, as the asp paramter control (included in data source control) supports only primitive types.
        /*****************************************************************************/
		
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)]
        public static  bool UpdateTblProductPurchaseOrder_MultipleShippingInfo
		(
			Int32 productPurchaseOrder_MultipleShippingInfoId,
			Int32 orderId,
			String shippingFirstName,
			String shippingLastName,
			String shippingAddressLine1,
			String shippingAddressLine2,
			String shippingCity,
			String shippingAddressState,
			String shippingAddressCountry,
			String shippingZipCode,
			String shippingTelephoneNumber,
			String shippingTelephoneNumber2,
			String shippingEmailAddress,
			String shippingMethod,
			Decimal shippingCost,
			String shippingStatus,
			String orderTrackNumber,
			Boolean isResidential,
			String gIftCardMessage,
			DateTime requestDate,
			Int32 addressBookId
		)
		{
			 TblProductPurchaseOrder_MultipleShippingInfo tblProductPurchaseOrder_MultipleShippingInfo =  TblProductPurchaseOrder_MultipleShippingInfo.GetTblProductPurchaseOrder_MultipleShippingInfoByProductPurchaseOrder_MultipleShippingInfoId(productPurchaseOrder_MultipleShippingInfoId);
			
				tblProductPurchaseOrder_MultipleShippingInfo.OrderId = orderId;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingFirstName = shippingFirstName;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingLastName = shippingLastName;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine1 = shippingAddressLine1;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine2 = shippingAddressLine2;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingCity = shippingCity;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressState = shippingAddressState;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressCountry = shippingAddressCountry;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingZipCode = shippingZipCode;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber = shippingTelephoneNumber;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber2 = shippingTelephoneNumber2;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingEmailAddress = shippingEmailAddress;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingMethod = shippingMethod;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingCost = shippingCost;
				tblProductPurchaseOrder_MultipleShippingInfo.ShippingStatus = shippingStatus;
				tblProductPurchaseOrder_MultipleShippingInfo.OrderTrackNumber = orderTrackNumber;
				tblProductPurchaseOrder_MultipleShippingInfo.IsResidential = isResidential;
				tblProductPurchaseOrder_MultipleShippingInfo.GIftCardMessage = gIftCardMessage;
				tblProductPurchaseOrder_MultipleShippingInfo.RequestDate = requestDate;
				tblProductPurchaseOrder_MultipleShippingInfo.AddressBookId = addressBookId;
			
			return TblProductPurchaseOrder_MultipleShippingInfo.UpdateTblProductPurchaseOrder_MultipleShippingInfo(tblProductPurchaseOrder_MultipleShippingInfo);
		}

		/************************************************************************************
                         -- DELETE METHODS --
        *************************************************************************************/
        /************************* Architecure note:**********************************
        We have used the employeeId parameter as SqlInt32, to bind the delete method with object data source and view control directly.
        ****************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Update, true)]
        public static  bool DeleteTblProductPurchaseOrder_MultipleShippingInfo
		(
			Int32 productPurchaseOrder_MultipleShippingInfoId
		)
		{
			//Validate Input
			if(productPurchaseOrder_MultipleShippingInfoId <= GetProductPurchaseOrder_MultipleShippingInfoIdMinValue)
				throw (new ArgumentOutOfRangeException("productPurchaseOrder_MultipleShippingInfoId"));
				
			// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
			AddParameterToSqlCmd(sqlCmd, "@ProductPurchaseOrder_MultipleShippingInfoId",SqlDbType.Int, 0, ParameterDirection.Input, productPurchaseOrder_MultipleShippingInfoId);
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_DELETETBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO);
			ExecuteScalarCmd(sqlCmd);
			int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
			return (returnValue == 0 ? false : true);
			
		}
		
		/// <summary>
        /// Deletes a set of employees from the database.
        /// </summary>
		public static bool DeleteTblProductPurchaseOrder_MultipleShippingInfoList( System.Collections.Generic.List<Int32>  productPurchaseOrder_MultipleShippingInfoIdListToDelete)
		{
			//Validate Input
			foreach (Int32 productPurchaseOrder_MultipleShippingInfoId in productPurchaseOrder_MultipleShippingInfoIdListToDelete)
			    if(productPurchaseOrder_MultipleShippingInfoId <= GetProductPurchaseOrder_MultipleShippingInfoIdMinValue)
					throw (new ArgumentOutOfRangeException("productPurchaseOrder_MultipleShippingInfoId"));
			
			//performing deletion operation //

            string xmlString = FormatXMLForIdArray(productPurchaseOrder_MultipleShippingInfoIdListToDelete);
			
			// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            AddParameterToSqlCmd(sqlCmd, "@ProductPurchaseOrder_MultipleShippingInfoIdList", SqlDbType.Xml, xmlString.ToString().Length, ParameterDirection.Input, xmlString.ToString());
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_DELETETBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOLIST);
			ExecuteScalarCmd(sqlCmd);
			int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
			return (returnValue == productPurchaseOrder_MultipleShippingInfoIdListToDelete.Count ? true : false);
		}
		
		/************************************************************************************
                                 -- GET BY PRIMARY METHODS --
        *************************************************************************************/
        /************************* Architecure note:**********************************
        Retrives an Employee from database, based on it's primary key.
        To view or update an employee, everytime we must have to use this type of 'get' method, 
        since we don't have direct access to the Primary key value for assigning value.
        We have used the employeeId parameter as SqlInt32, to bind the delete method with object data source and view control directly.
        /*****************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
		public static TblProductPurchaseOrder_MultipleShippingInfo GetTblProductPurchaseOrder_MultipleShippingInfoByProductPurchaseOrder_MultipleShippingInfoId(Int32 productPurchaseOrder_MultipleShippingInfoId)
		{
			if(productPurchaseOrder_MultipleShippingInfoId <= GetProductPurchaseOrder_MultipleShippingInfoIdMinValue)
					throw (new ArgumentOutOfRangeException("productPurchaseOrder_MultipleShippingInfoId"));
				
		 	// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@ProductPurchaseOrder_MultipleShippingInfoId",SqlDbType.Int, 0, ParameterDirection.Input, productPurchaseOrder_MultipleShippingInfoId);
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOID);
			GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductPurchaseOrder_MultipleShippingInfoCollectionFromReader);
            CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> objCollection = ((CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo>)ExecuteReaderCmd(sqlCmd, test));

            if (objCollection.Count > 0)
                return objCollection[0];
            else
                return null;
		}
		
		/************************************************************************************
                         -- GET BY FOREIGN KEY METHODS --
        *************************************************************************************/
				
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, false)]
		public static CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> GetTblProductPurchaseOrder_MultipleShippingInfoByOrderId(Int32 orderId)
		{
			if(orderId <= GetOrderIdMinValue)
					throw (new ArgumentOutOfRangeException("orderId"));
				
		 	// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@OrderId",SqlDbType.Int, 0, ParameterDirection.Input, orderId);
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYORDERID);
			GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductPurchaseOrder_MultipleShippingInfoCollectionFromReader);
            CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> objCollection = ((CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo>)ExecuteReaderCmd(sqlCmd, test));

            if (objCollection.Count > 0)
                return objCollection;
            else
                return null;
		}
		
		/// <summary>
        /// Gets all the TblProductPurchaseOrder_MultipleShippingInfo regarding 'PREFERRED_LANGUAGE_ID' foreign key.
        /// It supports efficient paging.
        /// </summary>
        /// <returns>A collection of TblProductPurchaseOrder_MultipleShippingInfo.</returns>
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, false)]
        public static CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> GetTblProductPurchaseOrder_MultipleShippingInfoByOrderIdPaged(Int32 orderId,String orderBy, Int32 startRowIndex, Int32 maximumRows)
		{
            //Validate Input
			if(orderId <= GetOrderIdMinValue)
					throw (new ArgumentOutOfRangeException("orderId"));
			
            if (orderBy == "")
                orderBy = "OrderId";

            // Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@OrderId",SqlDbType.Int, 0, ParameterDirection.Input, orderId);
            AddParameterToSqlCmd(sqlCmd, "@orderby", SqlDbType.VarChar, 50, ParameterDirection.Input, orderBy);
            AddParameterToSqlCmd(sqlCmd, "@startrow", SqlDbType.Int, 0, ParameterDirection.Input, startRowIndex);
            AddParameterToSqlCmd(sqlCmd, "@pagesize", SqlDbType.Int, 0, ParameterDirection.Input, maximumRows);

            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYORDERIDPAGED);

            GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductPurchaseOrder_MultipleShippingInfoCollectionFromReader);
            CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> objCollection = ((CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo>)ExecuteReaderCmd(sqlCmd, test));

            return objCollection;
        }
		
		/// <summary>
        /// This is a supporting method of 'GetEmployeeByPREFERRED_LANGUAGE_IDPagedPagedCountPaged' method.
        /// Used in paging, which returns the total number of records, returned from the ''GetEmployeeByReportsToPaged'' method (regardless of page size).
        /// Although we are not using the parameters, but we need the same signature as ''GetEmployeeByReportsToPaged'' to support paging.
        /// </summary>
		public static int GetTblProductPurchaseOrder_MultipleShippingInfoByOrderIdPagedCount(Int32 orderId,String orderBy, Int32 startRowIndex, Int32 maximumRows)
        {
            //Validate Input
			if(orderId <= GetOrderIdMinValue)
					throw (new ArgumentOutOfRangeException("orderId"));
			
			// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
			AddParameterToSqlCmd(sqlCmd, "@OrderId",SqlDbType.Int, 0, ParameterDirection.Input, orderId);
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYORDERIDPAGEDCOUNT);
            ExecuteScalarCmd(sqlCmd);

            int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
            return returnValue;
        }
		
		/************************************************************************************
                 -- GET ALL METHODS --
        *************************************************************************************/
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
        public static CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> GetAllTblProductPurchaseOrder_MultipleShippingInfo()
		{
		
		 	// Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETALLTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO);
            GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductPurchaseOrder_MultipleShippingInfoCollectionFromReader);
            CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> objCollection = ((CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo>)ExecuteReaderCmd(sqlCmd, test));

            return objCollection;
		}
		
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
        public static CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> GetAllTblProductPurchaseOrder_MultipleShippingInfoPaged(String orderBy, Int32 startRowIndex, Int32 maximumRows)
        {
            //Validate Input
            if (orderBy == "")
                orderBy = "ProductPurchaseOrder_MultipleShippingInfoId";

            // Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();
            AddParameterToSqlCmd(sqlCmd, "@orderby", SqlDbType.VarChar, 50, ParameterDirection.Input, orderBy);
            AddParameterToSqlCmd(sqlCmd, "@startrow", SqlDbType.Int, 0, ParameterDirection.Input, startRowIndex);
            AddParameterToSqlCmd(sqlCmd, "@pagesize", SqlDbType.Int, 0, ParameterDirection.Input, maximumRows);

            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETALLTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOPAGED);

            GenerateCollectionFromReader test = new GenerateCollectionFromReader(GenerateTblProductPurchaseOrder_MultipleShippingInfoCollectionFromReader);
            CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> objCollection = ((CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo>)ExecuteReaderCmd(sqlCmd, test));
            return objCollection;
        }
		
		[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
        public static int GetAllTblProductPurchaseOrder_MultipleShippingInfoPagedCount(String orderBy, Int32 startRowIndex, Int32 maximumRows)
        {
            // Execute SQL Command
            SqlCommand sqlCmd = new SqlCommand();

            AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETALLTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOPAGEDCOUNT);
            ExecuteScalarCmd(sqlCmd);

            int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
            return returnValue;
        }
		
		#endregion
		#region Employee Instance Methods
		/************************************************************************************
                                    -- SAVE (INSERT/UPDATE) METHODS (INSTANCE) --
        *************************************************************************************/
		/// <summary>
        /// Saves (inserts and updates) an Employee into database.
        /// The insertion occur if the EmployeeId conatins default value.
        /// Otherwises it updates the Employee into the database, based on the primary key value stored in EmployeeId.
        /// This technique ensures an Employee will not be updated without having a valid EmployeeId.
        /// </summary>
		public bool Save()
		{
			if(ProductPurchaseOrder_MultipleShippingInfoId<= GetProductPurchaseOrder_MultipleShippingInfoIdMinValue)
			{
				Int32 TempId=CreateNewTblProductPurchaseOrder_MultipleShippingInfo(this);
				if(TempId>0)
				{
					_productPurchaseOrder_MultipleShippingInfoId=TempId;
					return true;
				}
				else
				{
					// error occurs
					return false;
				}
			}
			else
			{	//This is a update Command
				return (UpdateTblProductPurchaseOrder_MultipleShippingInfo(this));
			}
			
		}
		
		public static Int32 CreateNewTblProductPurchaseOrder_MultipleShippingInfo(TblProductPurchaseOrder_MultipleShippingInfo newTblProductPurchaseOrder_MultipleShippingInfo)
		{
			// validate Parameters
			if (newTblProductPurchaseOrder_MultipleShippingInfo == null)
				throw (new ArgumentNullException("newTblProductPurchaseOrder_MultipleShippingInfo"));

			// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			int length = 0;
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            
			AddParameterToSqlCmd(sqlCmd, "@OrderId",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.OrderId);
			AddParameterToSqlCmd(sqlCmd, "@ShippingFirstName",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingFirstName);
			AddParameterToSqlCmd(sqlCmd, "@ShippingLastName",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingLastName);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressLine1",SqlDbType.NVarChar, 4000, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine1);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressLine2",SqlDbType.NVarChar, 4000, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine2);
			AddParameterToSqlCmd(sqlCmd, "@ShippingCity",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingCity);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressState",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressState);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressCountry",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressCountry);
			AddParameterToSqlCmd(sqlCmd, "@ShippingZipCode",SqlDbType.NVarChar, 50, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingZipCode);
			AddParameterToSqlCmd(sqlCmd, "@ShippingTelephoneNumber",SqlDbType.NVarChar, 50, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber);
			AddParameterToSqlCmd(sqlCmd, "@ShippingTelephoneNumber2",SqlDbType.NVarChar, 50, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber2);
			AddParameterToSqlCmd(sqlCmd, "@ShippingEmailAddress",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingEmailAddress);
			AddParameterToSqlCmd(sqlCmd, "@ShippingMethod",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingMethod);
			AddParameterToSqlCmd(sqlCmd, "@ShippingCost",SqlDbType.Decimal, 9, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingCost);
			AddParameterToSqlCmd(sqlCmd, "@ShippingStatus",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingStatus);
			AddParameterToSqlCmd(sqlCmd, "@OrderTrackNumber",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.OrderTrackNumber);
			AddParameterToSqlCmd(sqlCmd, "@IsResidential",SqlDbType.Bit, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.IsResidential);
			AddParameterToSqlCmd(sqlCmd, "@GIftCardMessage",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.GIftCardMessage);
            if (newTblProductPurchaseOrder_MultipleShippingInfo.RequestDate != DateTime.MinValue)
                AddParameterToSqlCmd(sqlCmd, "@RequestDate", SqlDbType.DateTime, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.RequestDate);
            else
                AddParameterToSqlCmd(sqlCmd, "@RequestDate", SqlDbType.DateTime, 0, ParameterDirection.Input, DBNull.Value);
			
			AddParameterToSqlCmd(sqlCmd, "@AddressBookId",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.AddressBookId);
			
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_CREATENEWTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO);
			ExecuteScalarCmd(sqlCmd);
			return (Int32.Parse(sqlCmd.Parameters["@ReturnValue"].Value.ToString()));

		}
		/// <summary>
        /// Updates an TblProductPurchaseOrder_MultipleShippingInfo instance to the database.
        /// </summary>
		public static bool UpdateTblProductPurchaseOrder_MultipleShippingInfo(TblProductPurchaseOrder_MultipleShippingInfo newTblProductPurchaseOrder_MultipleShippingInfo)
		{
			// validate Parameters
			if (newTblProductPurchaseOrder_MultipleShippingInfo == null)
				throw (new ArgumentNullException("newTblProductPurchaseOrder_MultipleShippingInfo"));

			// Execute SQL Command
			SqlCommand sqlCmd = new SqlCommand();
			int length = 0;
			AddParameterToSqlCmd(sqlCmd, "@ReturnValue", SqlDbType.Int, 0, ParameterDirection.ReturnValue, null);
            
			AddParameterToSqlCmd(sqlCmd, "@ProductPurchaseOrder_MultipleShippingInfoId",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ProductPurchaseOrder_MultipleShippingInfoId);
			AddParameterToSqlCmd(sqlCmd, "@OrderId",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.OrderId);
			AddParameterToSqlCmd(sqlCmd, "@ShippingFirstName",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingFirstName);
			AddParameterToSqlCmd(sqlCmd, "@ShippingLastName",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingLastName);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressLine1",SqlDbType.NVarChar, 4000, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine1);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressLine2",SqlDbType.NVarChar, 4000, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressLine2);
			AddParameterToSqlCmd(sqlCmd, "@ShippingCity",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingCity);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressState",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressState);
			AddParameterToSqlCmd(sqlCmd, "@ShippingAddressCountry",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingAddressCountry);
			AddParameterToSqlCmd(sqlCmd, "@ShippingZipCode",SqlDbType.NVarChar, 50, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingZipCode);
			AddParameterToSqlCmd(sqlCmd, "@ShippingTelephoneNumber",SqlDbType.NVarChar, 50, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber);
			AddParameterToSqlCmd(sqlCmd, "@ShippingTelephoneNumber2",SqlDbType.NVarChar, 50, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingTelephoneNumber2);
			AddParameterToSqlCmd(sqlCmd, "@ShippingEmailAddress",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingEmailAddress);
			AddParameterToSqlCmd(sqlCmd, "@ShippingMethod",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingMethod);
			AddParameterToSqlCmd(sqlCmd, "@ShippingCost",SqlDbType.Decimal, 9, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingCost);
			AddParameterToSqlCmd(sqlCmd, "@ShippingStatus",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.ShippingStatus);
			AddParameterToSqlCmd(sqlCmd, "@OrderTrackNumber",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.OrderTrackNumber);
			AddParameterToSqlCmd(sqlCmd, "@IsResidential",SqlDbType.Bit, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.IsResidential);
			AddParameterToSqlCmd(sqlCmd, "@GIftCardMessage",SqlDbType.NVarChar, 500, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.GIftCardMessage);
			AddParameterToSqlCmd(sqlCmd, "@RequestDate",SqlDbType.DateTime, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.RequestDate);
			AddParameterToSqlCmd(sqlCmd, "@AddressBookId",SqlDbType.Int, 0, ParameterDirection.Input, newTblProductPurchaseOrder_MultipleShippingInfo.AddressBookId);
			
			SetCommandType(sqlCmd,CommandType.StoredProcedure,SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_UPDATETBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO);
            ExecuteScalarCmd(sqlCmd);
			int returnValue = (int)sqlCmd.Parameters["@ReturnValue"].Value;
			return (returnValue == 0 ? false : true);
		}
		#endregion
		
		#region TblProductPurchaseOrder_MultipleShippingInfo Related Collections
		/// <summary>
        /// Creates and returns a strongly typed collection of Employee custom entity. 
        /// The colelction is created through iterating on the IdataReader object which contains Employee information, as a set of records, similar to tabular format.
        /// </summary>
		public static CollectionBase  GenerateTblProductPurchaseOrder_MultipleShippingInfoCollectionFromReader(IDataReader returnData) 
		{
			
			//creating the instance of Employee collection
			CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo> colTblProductPurchaseOrder_MultipleShippingInfo = new CustomCollection<TblProductPurchaseOrder_MultipleShippingInfo>();
			
			/************************* Architecure note:**********************************
             * Below code includes the null value functionality to retieve the data which has nill value in database end.
             * Design consideration:
             * Besides general data fields, special care should be taken for primary keys, to assign '0'/defaultvalue, rather passing 'Null' value in constructor parameter.
             * Although we are considering sqldb tyoe data for the current data container, but while retireving data from database end, through datareader object, we need to cast data reader objects using .net primitive data type, 
             * rather using sqldb type to cast, since data reader objects don't support sql db type to be casted.
             *****************************************************************************/

            //Iterating thriugh the data reader, to generate Employee collection.

			//getting the Employee collection by iterating thru the data reader
			while (returnData.Read()) 
			{
				//passing the TblProductPurchaseOrder_MultipleShippingInfo constructor parameters from the current instance of data reader fields.
				TblProductPurchaseOrder_MultipleShippingInfo newTblProductPurchaseOrder_MultipleShippingInfo = new TblProductPurchaseOrder_MultipleShippingInfo
				(
					returnData["ProductPurchaseOrder_MultipleShippingInfoId"]== System.DBNull.Value ? GetProductPurchaseOrder_MultipleShippingInfoIdMinValue : (Int32 ) returnData["ProductPurchaseOrder_MultipleShippingInfoId"],
					returnData["OrderId"]== System.DBNull.Value ? 0: (Int32 ) returnData["OrderId"],
					returnData["ShippingFirstName"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingFirstName"],
					returnData["ShippingLastName"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingLastName"],
					returnData["ShippingAddressLine1"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingAddressLine1"],
					returnData["ShippingAddressLine2"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingAddressLine2"],
					returnData["ShippingCity"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingCity"],
					returnData["ShippingAddressState"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingAddressState"],
					returnData["ShippingAddressCountry"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingAddressCountry"],
					returnData["ShippingZipCode"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingZipCode"],
					returnData["ShippingTelephoneNumber"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingTelephoneNumber"],
					returnData["ShippingTelephoneNumber2"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingTelephoneNumber2"],
					returnData["ShippingEmailAddress"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingEmailAddress"],
					returnData["ShippingMethod"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingMethod"],
					returnData["ShippingCost"]== System.DBNull.Value ? 0: (Decimal ) returnData["ShippingCost"],
					returnData["ShippingStatus"]== System.DBNull.Value ? string.Empty: (String ) returnData["ShippingStatus"],
					returnData["OrderTrackNumber"]== System.DBNull.Value ? string.Empty: (String ) returnData["OrderTrackNumber"],
					returnData["IsResidential"]== System.DBNull.Value ? false: (Boolean ) returnData["IsResidential"],
					returnData["GIftCardMessage"]== System.DBNull.Value ? string.Empty: (String ) returnData["GIftCardMessage"],
					returnData["RequestDate"]== System.DBNull.Value ? DateTime.MinValue: (DateTime ) returnData["RequestDate"],
					returnData["AddressBookId"]== System.DBNull.Value ? 0: (Int32 ) returnData["AddressBookId"]

				);
				//adding the Employee to the collection
				colTblProductPurchaseOrder_MultipleShippingInfo.Add(newTblProductPurchaseOrder_MultipleShippingInfo);
			}
			
			//returns the collection of Companys 
			return (colTblProductPurchaseOrder_MultipleShippingInfo);
		}
		
		#endregion
		#region Constants and Default Values
		
		public static Int32 GetProductPurchaseOrder_MultipleShippingInfoIdMinValue
		{
			get
			{
				return 0;
			}
		}
		public static Int32 GetOrderIdMinValue
		{
			get
			{
				return 0;
			}
		}
		
		//create method related contants
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_CREATENEWTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO = "spr_CreateNewTblProductPurchaseOrder_MultipleShippingInfo";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_UPDATETBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO = "UpdateTblProductPurchaseOrder_MultipleShippingInfo";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_DELETETBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO = "DeleteTblProductPurchaseOrder_MultipleShippingInfo";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_DELETETBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOLIST = "DeleteTblProductPurchaseOrder_MultipleShippingInfoList";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOID = "MultipleShippingInfoByProductPurchaseOrder_MultipleShippingInfoId";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYORDERID = "GetTblProductPurchaseOrder_MultipleShippingInfoByOrderId";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYORDERIDPAGED = "GetTblProductPurchaseOrder_MultipleShippingInfoByOrderIdPaged";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOBYORDERIDPAGEDCOUNT = "GetTblProductPurchaseOrder_MultipleShippingInfoByOrderIdPagedCount";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETALLTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO = "GetAllTblProductPurchaseOrder_MultipleShippingInfo";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETALLTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOPAGED = "GetAllTblProductPurchaseOrder_MultipleShippingInfoPaged";
        internal const string SPR_TBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFO_GETALLTBLPRODUCTPURCHASEORDER_MULTIPLESHIPPINGINFOPAGEDCOUNT = "GetAllTblProductPurchaseOrder_MultipleShippingInfoPagedCount";
		
		#endregion
	}
}	
